package org.andot.one.ums.controller;

import org.andot.one.ums.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/user")
public class UserController {
    @Resource
    private UserService userService;

    @RequestMapping("/id")
    public String get(@RequestParam("name") String name){
        return userService.getUserInfo()+"Hello "+name;
    }
}
